package cn.edu.hqu.exp.courseselection.domain;

import javax.persistence.Entity;
import javax.persistence.Id;

import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

@Data
@RequiredArgsConstructor
@NoArgsConstructor(access=AccessLevel.PRIVATE, force = true)
@Entity
public class Course {
	@Id
	private final String id;
	private final String name;
	private final Type type;
	public static enum Type{
		GeneralEdu("通识教育课"),
		Core("专业核心课"),
		Basic("专业基础课"),
		Election("专业选修课"),
		GeneralEle("通识选修课");
		
		Type(String string) {
			// TODO Auto-generated constructor stub
			this.tName = string;
		}
		
		public String getName() {
			return this.tName;
		}
		
		private String tName;
		
	}
}
